package com.qingfeng.client.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingfeng.client.DO.GoodsDetailDo;
import com.qingfeng.client.DO.GoodsInfoDo;
import com.qingfeng.client.DO.ShoppingCartStoreDo;
import com.qingfeng.client.VO.OrderGoodsVo;
import com.qingfeng.client.bean.Goods;
import com.qingfeng.client.bean.Goods2attrs;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/1/6 10:16 上午
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    ShoppingCartStoreDo getShopCatGoodsDoByGoodsId(@Param("goodsId") Long goodsId);

    List<GoodsInfoDo> getGoodsInfoByGoodsIds(@Param("list")List<OrderGoodsVo> list);

    void updateGoodsNum(@Param("list")List<GoodsInfoDo> goodsInfoDos);

    List<Goods> selectByIdList(@Param("list") List<GoodsInfoDo> goodsInfoDos);

    List<GoodsDetailDo> getDetail(@Param("goodsCommond")long goodsCommonId);

    void recvGoodsById(@Param("num") int num,@Param("id") long id);

}
